package com.halflife.comeElectricity.member.rider;

import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface ActivateLogRepository {

    int deleteByPrimaryKey(Integer id);

    int insert(ActivateLog activateLog);

    int insertSelective(ActivateLog activateLog);

    ActivateLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ActivateLog activateLog);

    int updateByPrimaryKey(ActivateLog activateLog);

    List<ActivateLog> selectAll(Map<String, Object> param);

    int selectCount(Map<String, Object> param);

    List<ActivateLog> selectListByPage(Map<String, Object> param);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    List<ActivateLog> selectMany(@Param("sql") String sql);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    ActivateLog selectOne(@Param("sql") String sql);



}